<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
</script>

<template>
  <!-- 未登录 -->
  <div class="headersNotLogin">
    <a class="login" @click="router.push({ path: '/login' })">登录</a>
    <div class="line"></div>
    <a class="register" @click="router.push({ path: '/register' })">注册</a>
  </div>
</template>

<style scoped lang="scss">
// 未登录时
.headersNotLogin {
  @include flexCenter;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.line {
  width: 1px;
  height: 14px;
  background-color: #fff;
}
a {
  cursor: pointer;
}
</style>
